package com.lzm.domain;

import java.io.Serializable;

public class SuccessKilledKey implements Serializable {

    static final long serialVersionUID = 1L;

    private Long seckillId;

    private Long userPhone;

    public Long getSeckillId() {
        return seckillId;
    }

    public void setSeckillId(Long seckillId) {
        this.seckillId = seckillId;
    }

    public Long getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(Long userPhone) {
        this.userPhone = userPhone;
    }

    @Override
    public boolean equals(Object o) {
        if(o instanceof SuccessKilledKey){
            SuccessKilledKey key = (SuccessKilledKey)o ;
            if(this.seckillId.equals(key.getSeckillId()) && this.userPhone.equals(key.getUserPhone())){
                return true ;
            }
        }
        return false ;
    }

    @Override
    public int hashCode() {
        return this.userPhone.hashCode();
    }
}
